Examples of ORemoteFetchListener


Examples of com.orientechnologies.orient.core.fetch.remote.ORemoteFetchListener

             if (record instanceof ODocument) {
               final Map<String, Integer> fetchPlan = OFetchHelper.buildFetchPlan(fetchPlanString);

               final Set<ORecord> recordsToSend = new HashSet<ORecord>();
               final ODocument doc = (ODocument) record;
               final OFetchListener listener = new ORemoteFetchListener() {
                 @Override
                 protected void sendRecord(ORecord iLinked) {
                   recordsToSend.add(iLinked);
                 }
               };
View Full Code Here

Examples of com.orientechnologies.orient.core.fetch.remote.ORemoteFetchListener

public class OSyncCommandResultListener extends OAbstractCommandResultListener {
   private final Set<ORecord> fetchedRecordsToSend = new HashSet<ORecord>();

   @Override
   public boolean result(final Object iRecord) {
     fetchRecord(iRecord, new ORemoteFetchListener() {
       @Override
       protected void sendRecord(ORecord iLinked) {
         fetchedRecordsToSend.add(iLinked);
       }
     });
View Full Code Here

Examples of com.orientechnologies.orient.core.fetch.remote.ORemoteFetchListener

         protocol.sendOk(txId);
       } catch (IOException ignored) {
       }

     try {
       fetchRecord(iRecord, new ORemoteFetchListener() {
         @Override
         protected void sendRecord(ORecord iLinked) {
           try {
             if (protocol.connection.data.protocolVersion >= 17) {
               protocol.channel.writeByte((byte) 2); // CACHE IT ON THE CLIENT
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.