Package com.automic.server.api.data
Class ClientQueueList
java.lang.Object
com.automic.server.api.data.ClientQueueList
- All Implemented Interfaces:
Iterable<ClientQueueList.Entry>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addQueueFilter
(String queue) Adds the queue filter.void
addQueueFilter
(String queue, int client) Adds the queue filter.void
clear()
Clear the queueListboolean
Contains empty queue.get
(int index) Gets the.int
Gets the client of empty queue.getList()
Gets the list.int
getQueueClient
(int n) Gets the queue client.Gets the queue client list.Gets the queue list.iterator()
void
setList
(List<ClientQueueList.Entry> list) Sets the list.int
size()
Size.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ClientQueueList
public ClientQueueList()Instantiates a new client queue list.
-
-
Method Details
-
getList
Gets the list.- Returns:
- the list
-
setList
Sets the list.- Parameters:
list
- the new list
-
size
public int size()Size.- Returns:
- the int
-
getQueueClientList
Gets the queue client list.- Returns:
- the queue client list
-
getQueueList
Gets the queue list.- Returns:
- the queue list
-
getQueueClient
public int getQueueClient(int n) Gets the queue client.- Parameters:
n
- the n- Returns:
- the queue client
-
get
Gets the.- Parameters:
index
- the index- Returns:
- the string
-
addQueueFilter
Adds the queue filter.- Parameters:
queue
- the queue
-
addQueueFilter
Adds the queue filter.- Parameters:
queue
- the queueclient
- the client
-
iterator
- Specified by:
iterator
in interfaceIterable<ClientQueueList.Entry>
-
containsEmptyQueue
public boolean containsEmptyQueue()Contains empty queue.- Returns:
- true, if successful
-
getClientOfEmptyQueue
public int getClientOfEmptyQueue()Gets the client of empty queue.- Returns:
- the client of empty queue
-
clear
public void clear()Clear the queueList
-