Interface ISuperpeerCollaborationService
-
public interface ISuperpeerCollaborationService
Interface for superpeer collaboration functionality.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> ISubscriptionIntermediateFuture<T>
addIntransitiveQuery(ServiceQuery<T> query)
Add a service query to the superpeer registry only.IFuture<IServiceIdentifier>
intransitiveSearchService(ServiceQuery<?> query)
Search superpeer for a single service, restricted to the called superpeer.IFuture<java.util.Set<IServiceIdentifier>>
intransitiveSearchServices(ServiceQuery<?> query)
Search superpeer for services, restricted to the called superpeer.
-
-
-
Method Detail
-
intransitiveSearchService
IFuture<IServiceIdentifier> intransitiveSearchService(ServiceQuery<?> query)
Search superpeer for a single service, restricted to the called superpeer.- Parameters:
query
- The search query.- Returns:
- The first matching service or null if not found.
-
intransitiveSearchServices
IFuture<java.util.Set<IServiceIdentifier>> intransitiveSearchServices(ServiceQuery<?> query)
Search superpeer for services, restricted to the called superpeer.- Parameters:
query
- The search query.- Returns:
- The matching services or empty set if none are found.
-
addIntransitiveQuery
<T> ISubscriptionIntermediateFuture<T> addIntransitiveQuery(ServiceQuery<T> query)
Add a service query to the superpeer registry only.- Parameters:
query
- The service query.- Returns:
- Subscription to matching services.
-
-