Package org.jgroups.protocols.pbcast
Class STATE.StateOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.jgroups.protocols.pbcast.STATE.StateOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
- Enclosing class:
- STATE
protected class STATE.StateOutputStream extends java.io.OutputStream
-
-
Field Summary
Fields Modifier and Type Field Description protected long
bytesWrittenCounter
protected java.util.concurrent.atomic.AtomicBoolean
closed
protected Address
stateRequester
-
Constructor Summary
Constructors Constructor Description StateOutputStream(Address stateRequester)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected java.io.InterruptedIOException
interrupted(int cnt)
protected void
sendMessage(byte[] b, int off, int len)
void
write(byte[] b)
void
write(byte[] b, int off, int len)
void
write(int b)
-
-
-
Field Detail
-
stateRequester
protected final Address stateRequester
-
closed
protected final java.util.concurrent.atomic.AtomicBoolean closed
-
bytesWrittenCounter
protected long bytesWrittenCounter
-
-
Constructor Detail
-
StateOutputStream
public StateOutputStream(Address stateRequester)
-
-
Method Detail
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
write
public void write(byte[] b, int off, int len) throws java.io.IOException
- Overrides:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
write
public void write(byte[] b) throws java.io.IOException
- Overrides:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
write
public void write(int b) throws java.io.IOException
- Specified by:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
sendMessage
protected void sendMessage(byte[] b, int off, int len) throws java.io.IOException
- Throws:
java.io.IOException
-
interrupted
protected java.io.InterruptedIOException interrupted(int cnt)
-
-