arcgissamples\soe\—ArcObjects 10.4 Help for Java | ArcGIS for Desktop
Find Nearby Features SOAP Server Object Extension
/* Copyright 2015 ESRI
* All rights reserved under the copyright laws of the United States
* and applicable international laws, treaties, and conventions.
* You may freely redistribute and use this sample code, with or
* without modification, provided you include the original copyright
* notice and use restrictions.
* See the use restrictions at <your ArcGIS install location>/DeveloperKit10.4/userestrictions.txt.
package arcgissamples.soe;

import com.esri.arcgis.geodatabase.RecordSet;
import com.esri.arcgis.geometry.Point;
import com.esri.arcgis.interop.extn.ArcGISExtension;

public interface IJavaFindNearbyFeatures {
    public RecordSet findNearbyFeatures(int layerId, Point location,
      double distance) throws Exception;