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
IOException
public static AbstractEvent fromSerializedEvent(ByteBuffer buffer, ClassLoader classLoader) throws IOException
IOException
public static Buffer toBuffer(AbstractEvent event, boolean hasPriority) throws IOException
IOException
public static BufferConsumer toBufferConsumer(AbstractEvent event, boolean hasPriority) throws IOException
IOException
public static AbstractEvent fromBuffer(Buffer buffer, ClassLoader classLoader) throws IOException
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.