congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
KillCursorsMessage
Code IndexAdd Tabnine to your IDE (free)

How to use
KillCursorsMessage
in
com.eightkdata.mongowp.messages.request

Best Java code snippets using com.eightkdata.mongowp.messages.request.KillCursorsMessage (Showing top 2 results out of 315)

origin: com.8kdata.mongowp.server/wp-layer

 @Override
 public KillCursorsMessage decode(ByteBuf buffer, RequestBaseMessage requestBaseMessage) throws
   InvalidNamespaceException {
  buffer.skipBytes(4);
  int numberOfCursors = buffer.readInt();
  long[] cursorIds = new long[numberOfCursors];
  for (int index = 0; index < numberOfCursors; index++) {
   cursorIds[index] = buffer.readLong();
  }

  return new KillCursorsMessage(
    requestBaseMessage, numberOfCursors, cursorIds
  );
 }
}
origin: com.8kdata.mongowp.server/mongo-server-api

@Override
public void killCursors(KillCursorsMessage killCursorsMessage, MessageReplier messageReplier) {
 C connection = getConnection(messageReplier);
 try {
  Request req = new Request(
    "admin", //an arbitary database
    new ExternalClientInfo(killCursorsMessage.getClientAddress(), killCursorsMessage
      .getRequestId()),
    true,
    null //Set the requested timeout
  );
  safeRequestProcessor.killCursors(connection, req, killCursorsMessage);
 } catch (MongoException ex) {
  errorHandler.handleMongodbException(connection, messageReplier.getRequestId(), false, ex);
 }
}
com.eightkdata.mongowp.messages.requestKillCursorsMessage

Most used methods

  • <init>
  • getClientAddress
  • getRequestId

Popular in Java

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • requestLocationUpdates (LocationManager)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now