Class GfSseEventReceiver
- java.lang.Object
-
- com.sun.enterprise.admin.remote.sse.GfSseEventReceiver
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class GfSseEventReceiver extends Object implements Closeable
- Author:
- Pavel Bucek (pavel.bucek at oracle.com), Martin Mares (martin.mares at oracle.com)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisClosed()Get object state.GfSseInboundEventreadEvent()
-
-
-
Method Detail
-
readEvent
public GfSseInboundEvent readEvent() throws IOException
- Throws:
IOException
-
isClosed
public boolean isClosed()
Get object state.- Returns:
- true if no new
InboundEventcan be received, false otherwise.
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-