public class EventSerializer extends Object
| Constructor and Description |
|---|
EventSerializer() |
| Modifier and Type | Method and Description |
|---|---|
static AbstractEvent |
fromBuffer(Buffer buffer,
ClassLoader classLoader) |
static AbstractEvent |
fromSerializedEvent(ByteBuffer buffer,
ClassLoader classLoader) |
static Buffer |
toBuffer(AbstractEvent event,
boolean hasPriority) |
static BufferConsumer |
toBufferConsumer(AbstractEvent event,
boolean hasPriority) |
static ByteBuffer |
toSerializedEvent(AbstractEvent event) |
public static ByteBuffer toSerializedEvent(AbstractEvent event) throws IOException
IOExceptionpublic static AbstractEvent fromSerializedEvent(ByteBuffer buffer, ClassLoader classLoader) throws IOException
IOExceptionpublic static Buffer toBuffer(AbstractEvent event, boolean hasPriority) throws IOException
IOExceptionpublic static BufferConsumer toBufferConsumer(AbstractEvent event, boolean hasPriority) throws IOException
IOExceptionpublic static AbstractEvent fromBuffer(Buffer buffer, ClassLoader classLoader) throws IOException
IOExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.