public final class Events extends HashMap<String,Sessions>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Events()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
create(String name)
Creates an event.
|
boolean |
drop(String name)
Drops an event.
|
String |
info()
Returns information on all events.
|
boolean |
notify(Context ctx,
byte[] name,
byte[] msg)
Notifies the watching sessions about an event.
|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
public boolean create(String name)
name
- event namepublic boolean drop(String name)
name
- event namepublic String info()
public boolean notify(Context ctx, byte[] name, byte[] msg)
ctx
- database contextname
- namemsg
- messageCopyright © 2005–2015 BaseX Team. All rights reserved.