|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dxfeed.event.misc.Configuration
@EventType public final class Configuration
Configuration event with application-specific attachment.
Constructor Summary | |
---|---|
Configuration()
Creates new configuration event with default values. |
|
Configuration(String eventSymbol)
Creates new configuration event with the specified event symbol. |
|
Configuration(String eventSymbol,
Object attachment)
Creates new configuration event with the specified event symbol and attachment. |
|
Configuration(String eventSymbol,
Object attachment,
int version)
Creates new configuration event with the specified event symbol, attachment and version. |
Method Summary | |
---|---|
Object |
getAttachment()
Returns attachment. |
Object |
getAttachment(ClassLoader cl)
Returns attachment. |
String |
getEventSymbol()
Returns symbol for this event. |
Object |
getMarshalledAttachment()
Returns implementation-specific form of an attachment. |
int |
getVersion()
Returns version. |
void |
setAttachment(Object attachment)
Changes attachment. |
void |
setEventSymbol(String eventSymbol)
Changes symbol for this event. |
void |
setMarshalledAttachment(Object attachment)
Changes implementation-specific form of an attachment. |
void |
setVersion(int version)
Changes version. |
String |
toString()
Returns string representation of this configuration event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Configuration()
public Configuration(String eventSymbol)
eventSymbol
- event symbol.public Configuration(String eventSymbol, Object attachment)
eventSymbol
- event symbol.attachment
- attachment.public Configuration(String eventSymbol, Object attachment, int version)
eventSymbol
- event symbol.attachment
- attachment.version
- version.Method Detail |
---|
public String getEventSymbol()
public void setEventSymbol(String eventSymbol)
eventSymbol
- event symbol.public int getVersion()
public void setVersion(int version)
version
- version.public Object getAttachment()
RuntimeException
- if object cannot be deserialized from its serial formpublic Object getAttachment(ClassLoader cl)
cl
- the ClassLoader that will be used to load classes; null
for default
RuntimeException
- if object cannot be deserialized from its serial formpublic void setAttachment(Object attachment)
attachment
- attachment.public Object getMarshalledAttachment()
public void setMarshalledAttachment(Object attachment)
attachment
- implementation-specific form of an attachment.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |