Class OLiveCommandResultListener
java.lang.Object
com.orientechnologies.orient.server.network.protocol.binary.OAbstractCommandResultListener
com.orientechnologies.orient.server.network.protocol.binary.OLiveCommandResultListener
- All Implemented Interfaces:
SimpleValueFetchPlanCommandListener,OCommandResultListener,OLiveResultListener
public class OLiveCommandResultListener
extends OAbstractCommandResultListener
implements OLiveResultListener
Asynchronous command result manager. As soon as a record is returned by the command is sent over
the wire.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Field Summary
Fields inherited from class com.orientechnologies.orient.server.network.protocol.binary.OAbstractCommandResultListener
wrappedResultListener -
Constructor Summary
ConstructorsConstructorDescriptionOLiveCommandResultListener(OServer server, OClientConnection connection, OCommandResultListener wrappedResultListener) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEmpty()voidvoidonError(int iLiveToken) voidonLiveResult(int iToken, ORecordOperation iOp) voidonUnsubscribe(int iLiveToken) booleanThis method is called for each result.voidwriteBytes(DataOutputStream out, byte[] bytes) Methods inherited from class com.orientechnologies.orient.server.network.protocol.binary.OAbstractCommandResultListener
end, fetchRecord, getResult, setFetchPlan
-
Constructor Details
-
OLiveCommandResultListener
public OLiveCommandResultListener(OServer server, OClientConnection connection, OCommandResultListener wrappedResultListener)
-
-
Method Details
-
result
Description copied from interface:OCommandResultListenerThis method is called for each result.- Specified by:
resultin interfaceOCommandResultListener- Parameters:
iRecord- Current record- Returns:
- True to continue the query, otherwise false
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin classOAbstractCommandResultListener
-
onLiveResult
- Specified by:
onLiveResultin interfaceOLiveResultListener- Throws:
OException
-
onError
public void onError(int iLiveToken) - Specified by:
onErrorin interfaceOLiveResultListener
-
onUnsubscribe
public void onUnsubscribe(int iLiveToken) - Specified by:
onUnsubscribein interfaceOLiveResultListener
-
writeBytes
- Throws:
IOException
-
linkdedBySimpleValue
- Specified by:
linkdedBySimpleValuein interfaceSimpleValueFetchPlanCommandListener
-