Package io.pravega.client.stream.impl
Class EventPointerImpl
- java.lang.Object
-
- io.pravega.client.stream.impl.EventPointerInternal
-
- io.pravega.client.stream.impl.EventPointerImpl
-
- All Implemented Interfaces:
EventPointer
public class EventPointerImpl extends EventPointerInternal
Implementation of the EventPointer interface. We use an EventPointerInternal abstract class as an intermediate class to make pointer instances opaque.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EventPointerInternal
asImpl()
Used internally.static io.pravega.client.stream.impl.EventPointerImpl.EventPointerBuilder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
static EventPointerInternal
fromBytes(java.nio.ByteBuffer data)
Deserializes the event pointer from its serialized from obtained from callingEventPointer.toBytes()
.static EventPointer
fromString(java.lang.String eventPointer)
int
hashCode()
java.nio.ByteBuffer
toBytes()
Serializes the Event pointer to a compact binary form.java.lang.String
toString()
-
-
-
Method Detail
-
asImpl
public EventPointerInternal asImpl()
Description copied from interface:EventPointer
Used internally. Do not call.- Returns:
- Implementation of EventPointer interface
-
fromString
public static EventPointer fromString(java.lang.String eventPointer)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toBytes
public java.nio.ByteBuffer toBytes()
Description copied from interface:EventPointer
Serializes the Event pointer to a compact binary form.- Returns:
- A binary representation of the event pointer.
-
fromBytes
public static EventPointerInternal fromBytes(java.nio.ByteBuffer data)
Description copied from interface:EventPointer
Deserializes the event pointer from its serialized from obtained from callingEventPointer.toBytes()
.- Parameters:
data
- A serialized event pointer.- Returns:
- The event pointer object.
-
builder
public static io.pravega.client.stream.impl.EventPointerImpl.EventPointerBuilder builder()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-