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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.couchbase.client.core.cnc.Event
Event.Category, Event.Severity
-
-
Field Summary
-
Fields inherited from interface com.couchbase.client.core.cnc.Event
CATEGORY_PREFIX
-
-
Constructor Summary
Constructors Constructor Description InvalidPacketDetectedEvent(IoContext context, byte[] packet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
description()
A textual description with more information about the event.byte[]
packet()
Returns the invalid/malformed packet in its entirety.-
Methods inherited from class com.couchbase.client.core.cnc.AbstractEvent
category, context, created, createdAt, duration, severity, toString
-
-
-
-
Constructor Detail
-
InvalidPacketDetectedEvent
public InvalidPacketDetectedEvent(IoContext context, byte[] packet)
-
-
Method Detail
-
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.
-
-