Package io.bytestreams.exchange.core
Class SocketTransport
java.lang.Object
io.bytestreams.exchange.core.SocketTransport
- All Implemented Interfaces:
Transport,Closeable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.opentelemetry.api.common.AttributesReturns transport-level OTel attributes (e.g. network type, peer address, peer port).voidclose()Returns the input stream for reading inbound messages.Returns the output stream for writing outbound messages.
-
Constructor Details
-
SocketTransport
-
-
Method Details
-
inputStream
Description copied from interface:TransportReturns the input stream for reading inbound messages.- Specified by:
inputStreamin interfaceTransport- Throws:
IOException
-
outputStream
Description copied from interface:TransportReturns the output stream for writing outbound messages.- Specified by:
outputStreamin interfaceTransport- Throws:
IOException
-
attributes
public io.opentelemetry.api.common.Attributes attributes()Description copied from interface:TransportReturns transport-level OTel attributes (e.g. network type, peer address, peer port).- Specified by:
attributesin interfaceTransport
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceTransport- Throws:
IOException
-