Package com.automic.server.api.data
Class ClientQueueList
- java.lang.Object
-
- com.automic.server.api.data.ClientQueueList
-
- All Implemented Interfaces:
java.lang.Iterable<ClientQueueList.Entry>
public class ClientQueueList extends java.lang.Object implements java.lang.Iterable<ClientQueueList.Entry>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClientQueueList.Entry
-
Constructor Summary
Constructors Constructor Description ClientQueueList()
Instantiates a new client queue list.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addQueueFilter(java.lang.String queue)
Adds the queue filter.void
addQueueFilter(java.lang.String queue, int client)
Adds the queue filter.void
clear()
Clear the queueListboolean
containsEmptyQueue()
Contains empty queue.java.lang.String
get(int index)
Gets the.int
getClientOfEmptyQueue()
Gets the client of empty queue.java.util.List<ClientQueueList.Entry>
getList()
Gets the list.int
getQueueClient(int n)
Gets the queue client.java.util.List<java.lang.Integer>
getQueueClientList()
Gets the queue client list.java.util.List<java.lang.String>
getQueueList()
Gets the queue list.java.util.Iterator<ClientQueueList.Entry>
iterator()
void
setList(java.util.List<ClientQueueList.Entry> list)
Sets the list.int
size()
Size.
-
-
-
Method Detail
-
getList
public java.util.List<ClientQueueList.Entry> getList()
Gets the list.- Returns:
- the list
-
setList
public void setList(java.util.List<ClientQueueList.Entry> list)
Sets the list.- Parameters:
list
- the new list
-
size
public int size()
Size.- Returns:
- the int
-
getQueueClientList
public java.util.List<java.lang.Integer> getQueueClientList()
Gets the queue client list.- Returns:
- the queue client list
-
getQueueList
public java.util.List<java.lang.String> 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
public java.lang.String get(int index)
Gets the.- Parameters:
index
- the index- Returns:
- the string
-
addQueueFilter
public void addQueueFilter(java.lang.String queue)
Adds the queue filter.- Parameters:
queue
- the queue
-
addQueueFilter
public void addQueueFilter(java.lang.String queue, int client)
Adds the queue filter.- Parameters:
queue
- the queueclient
- the client
-
iterator
public java.util.Iterator<ClientQueueList.Entry> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<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
-
-