public class BufferOrEvent extends Object
Buffer
or AbstractEvent
instances tagged with the channel index,
from which they were received.Constructor and Description |
---|
BufferOrEvent(AbstractEvent event,
int channelIndex) |
BufferOrEvent(Buffer buffer,
int channelIndex) |
Modifier and Type | Method and Description |
---|---|
Buffer |
getBuffer() |
int |
getChannelIndex() |
AbstractEvent |
getEvent() |
boolean |
isBuffer() |
boolean |
isEvent() |
void |
setChannelIndex(int channelIndex) |
void |
setMoreAvailable(boolean moreAvailable) |
String |
toString() |
public BufferOrEvent(Buffer buffer, int channelIndex)
public BufferOrEvent(AbstractEvent event, int channelIndex)
public boolean isBuffer()
public boolean isEvent()
public Buffer getBuffer()
public AbstractEvent getEvent()
public int getChannelIndex()
public void setChannelIndex(int channelIndex)
public void setMoreAvailable(boolean moreAvailable)
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.