Class InvalidPacketDetectedEvent

java.lang.Object
com.couchbase.client.core.cnc.AbstractEvent
com.couchbase.client.core.cnc.events.io.InvalidPacketDetectedEvent
All Implemented Interfaces:
Event

public class InvalidPacketDetectedEvent extends AbstractEvent
This event is created if somewhere in the IO layer an invalid packet was detected.

Usually this happens if during a KV operation either a malformed request or response was detected. For more information, refer to the payload of this event.

Since:
2.0.0
  • Constructor Details

    • InvalidPacketDetectedEvent

      public InvalidPacketDetectedEvent(IoContext context, byte[] packet)
  • Method Details

    • description

      public String description()
      Description copied from interface: Event
      A textual description with more information about the event.
      Returns:
      the description, if set.
    • packet

      public byte[] packet()
      Returns the invalid/malformed packet in its entirety.
      Returns:
      the malformed packet.