uk.ac.man.entitytagger.networking
Class SimpleServer
java.lang.Object
uk.ac.man.entitytagger.networking.SimpleServer
- All Implemented Interfaces:
- java.util.Iterator<Problem<java.lang.Object>>
public class SimpleServer
- extends java.lang.Object
- implements java.util.Iterator<Problem<java.lang.Object>>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
socket
private java.net.ServerSocket socket
matcher
private Matcher matcher
cache
private java.util.Map<java.lang.Integer,java.util.List<Mention>> cache
cacheSem
private java.util.concurrent.Semaphore cacheSem
SimpleServer
public SimpleServer(int port,
Matcher matcher,
boolean enableCache)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator<Problem<java.lang.Object>>
next
public SimpleServerWorker next()
- Specified by:
next
in interface java.util.Iterator<Problem<java.lang.Object>>
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator<Problem<java.lang.Object>>