public class EventSerializer extends Object
| 构造器和说明 |
|---|
EventSerializer() |
| 限定符和类型 | 方法和说明 |
|---|---|
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–2023 The Apache Software Foundation. All rights reserved.