Class OortService.Result<U>

java.lang.Object
org.cometd.oort.OortService.Result<U>
Type Parameters:
U - the result type
Enclosing class:
OortService<R,​C>

public static class OortService.Result<U>
extends Object

Encapsulates the result of a forwarded request returned by OortService.onForward(Request).

Applications must use methods success(Object), failure(Object) or ignore(Object) to signal to the implementation the result of the forwarded request.

OortService may forward a request action for an entity to the owner node, but before the request arrives to the owner node, the entity may be removed from the owner node. When the owner node receives the request for the entity, the entity is not available anymore. Similarly, a request that is broadcast to all nodes arrives to nodes that do not own the entity. The node that receives the request must return a OortService.Result using the following rules:

See Also:
OortService.Request