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

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

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

origin: com.8kdata.mongowp.server/mongo-server-api

@Override
public void delete(DeleteMessage deleteMessage, MessageReplier messageReplier) {
 C connection = getConnection(messageReplier);
 try {
  Request req = new Request(
    deleteMessage.getDatabase(),
    new ExternalClientInfo(deleteMessage.getClientAddress(), deleteMessage.getRequestId()),
    false,
    null //Set the requested timeout
  );
  safeRequestProcessor.delete(connection, req, deleteMessage);
 } catch (MongoException ex) {
  errorHandler.handleMongodbException(connection, messageReplier.getRequestId(), false, ex);
 }
}
origin: com.8kdata.mongowp/mongowp-core

 @Override
 public String toString() {
  //TODO: This must be changed to preserve privacy on logs
  return "DeleteMessage{" + super.toString() + ", database='" + database + '\'' + ", collection='"
    + collection + '\'' + ", document=" + (getDataContext().isValid() ? document :
    "<not available>") + '}';
 }
}
origin: com.8kdata.mongowp.server/wp-layer

@Override
@Nonnegative
public DeleteMessage decode(ByteBuf buffer, RequestBaseMessage requestBaseMessage) throws
  InvalidNamespaceException, InvalidBsonException {
 try {
  MyBsonContext context = new MyBsonContext(buffer);
  buffer.skipBytes(4);
  String fullCollectionName = stringReader.readCString(buffer, true);
  int flags = buffer.readInt();
  BsonDocument document = docReader.readDocument(HEAP, buffer);
  //TODO: improve the way database and cache are pooled
  String database = getDatabase(fullCollectionName).intern();
  String collection = getCollection(fullCollectionName).intern();
  return new DeleteMessage(
    requestBaseMessage,
    context,
    database,
    collection,
    document,
    EnumInt32FlagsUtil.isActive(Flag.SINGLE_REMOVE, flags)
  );
 } catch (NettyBsonReaderException ex) {
  throw new InvalidBsonException(ex);
 }
}
com.eightkdata.mongowp.messages.requestDeleteMessage

Most used methods

  • <init>
  • getClientAddress
  • getDataContext
  • getDatabase
  • getRequestId

Popular in Java

  • Start an intent from android
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Path (java.nio.file)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Github Copilot alternatives
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