Package com.yahoo.messagebus.network.rpc
Interface RPCTarget.VersionHandler
- Enclosing class:
- RPCTarget
public static interface RPCTarget.VersionHandler
Declares a version handler used when resolving the version of a
target. An instance of this is passed to RPCTarget.resolveVersion(Duration, RPCTarget.VersionHandler)
, and invoked
either synchronously or asynchronously, depending on whether or not the
version is already available.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleVersion
(com.yahoo.component.Version ver) This method is invoked once the version of the correspondingRPCTarget
becomes available.
-
Method Details
-
handleVersion
void handleVersion(com.yahoo.component.Version ver) This method is invoked once the version of the corresponding
RPCTarget
becomes available. If a problem occured while retrieving the version, this method is invoked with a null argument.- Parameters:
ver
- The version of corresponding target, or null.
-