org.atmosphere.nettosphere
Class ChannelAsyncIOWriter
java.lang.Object
org.atmosphere.cpr.AsyncIOWriterAdapter
org.atmosphere.cpr.AtmosphereInterceptorWriter
org.atmosphere.nettosphere.ChannelAsyncIOWriter
- All Implemented Interfaces:
- org.atmosphere.cpr.AsyncIOWriter
public class ChannelAsyncIOWriter
- extends org.atmosphere.cpr.AtmosphereInterceptorWriter
An AsyncIOWriter that bridge Atmosphere output stream with Netty's Channel.
| Fields inherited from class org.atmosphere.cpr.AtmosphereInterceptorWriter |
filters |
|
Method Summary |
boolean |
byteWritten()
|
void |
close(org.atmosphere.cpr.AtmosphereResponse r)
|
boolean |
isClosed()
|
long |
lastTick()
|
void |
resumeOnBroadcast(boolean resumeOnBroadcast)
|
org.atmosphere.cpr.AsyncIOWriter |
write(org.atmosphere.cpr.AtmosphereResponse r,
byte[] data)
|
org.atmosphere.cpr.AsyncIOWriter |
write(org.atmosphere.cpr.AtmosphereResponse r,
byte[] data,
int offset,
int length)
|
org.atmosphere.cpr.AsyncIOWriter |
write(org.atmosphere.cpr.AtmosphereResponse r,
String data)
|
org.atmosphere.cpr.AsyncIOWriter |
writeError(org.atmosphere.cpr.AtmosphereResponse r,
int errorCode,
String message)
|
| Methods inherited from class org.atmosphere.cpr.AtmosphereInterceptorWriter |
flush, interceptor, invokeInterceptor, redirect, writeReady |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChannelAsyncIOWriter
public ChannelAsyncIOWriter(org.jboss.netty.channel.Channel channel)
isClosed
public boolean isClosed()
byteWritten
public boolean byteWritten()
resumeOnBroadcast
public void resumeOnBroadcast(boolean resumeOnBroadcast)
writeError
public org.atmosphere.cpr.AsyncIOWriter writeError(org.atmosphere.cpr.AtmosphereResponse r,
int errorCode,
String message)
throws IOException
- Specified by:
writeError in interface org.atmosphere.cpr.AsyncIOWriter- Overrides:
writeError in class org.atmosphere.cpr.AtmosphereInterceptorWriter
- Throws:
IOException
write
public org.atmosphere.cpr.AsyncIOWriter write(org.atmosphere.cpr.AtmosphereResponse r,
String data)
throws IOException
- Specified by:
write in interface org.atmosphere.cpr.AsyncIOWriter- Overrides:
write in class org.atmosphere.cpr.AtmosphereInterceptorWriter
- Throws:
IOException
write
public org.atmosphere.cpr.AsyncIOWriter write(org.atmosphere.cpr.AtmosphereResponse r,
byte[] data)
throws IOException
- Specified by:
write in interface org.atmosphere.cpr.AsyncIOWriter- Overrides:
write in class org.atmosphere.cpr.AtmosphereInterceptorWriter
- Throws:
IOException
write
public org.atmosphere.cpr.AsyncIOWriter write(org.atmosphere.cpr.AtmosphereResponse r,
byte[] data,
int offset,
int length)
throws IOException
- Specified by:
write in interface org.atmosphere.cpr.AsyncIOWriter- Overrides:
write in class org.atmosphere.cpr.AtmosphereInterceptorWriter
- Throws:
IOException
lastTick
public long lastTick()
close
public void close(org.atmosphere.cpr.AtmosphereResponse r)
throws IOException
- Specified by:
close in interface org.atmosphere.cpr.AsyncIOWriter- Overrides:
close in class org.atmosphere.cpr.AtmosphereInterceptorWriter
- Throws:
IOException
Copyright © 2012. All Rights Reserved.