java.io.Serializable
public class EventMask
extends java.lang.Object
implements java.io.Serializable
isMessageSupported(int)
method.
...
EventServerInfo eventServerInfo = (EventServerInfo) message;
EventMask mask = evt.getCapabilities();
boolean isSupported = mask.isMessageSupported(EventCallDataChanged.ID);
Together with RequestSetInputMask
the EventMask can narrow the list of messages, sent by T-Server to client application.
Mask bits: 1 - event is permitted; 0 - event is forbidden.Constructor | Description |
---|---|
EventMask() |
|
EventMask(byte[] b,
int offset) |
Modifier and Type | Method | Description |
---|---|---|
void |
clear(int nn) |
Clears bit.
|
void |
clearAll() |
Clears all bits.
|
boolean |
equals(java.lang.Object obj) |
|
byte[] |
getBytes() |
|
int |
hashCode() |
|
boolean |
isMessageSupported(int messageId) |
Checks whether the message with specified id is supported.
|
void |
set(int nn) |
Sets bit.
|
void |
setAll() |
Sets all bits = 1.
|
public void setAll()
public void clearAll()
public void set(int nn)
nn
- Bit number. Valid values [0-511]java.lang.IllegalArgumentException
- if input is out of rangepublic void clear(int nn)
nn
- Bit number. Valid values [0-511]java.lang.IllegalArgumentException
- if input is out of rangepublic boolean isMessageSupported(int messageId)
messageId
- Bit number. Valid values [0-511]java.lang.IllegalArgumentException
- if input is out of rangepublic byte[] getBytes()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.