Interface IpcChannelMessagesReceiver
- All Superinterfaces:
AutoCloseable
,Invalidatable
,UncaughtExceptionsGenerator
- All Known Implementing Classes:
PmMessageReceiver
Represents a receiver side of Inter process communication channel.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Waits for the next message sent by the other side to this channel and returns obtained message.Methods inherited from interface com._1c.g5.v8.dt.internal.pm.ipc.sync.Invalidatable
isValid
Methods inherited from interface com._1c.g5.v8.dt.internal.pm.ipc.sync.UncaughtExceptionsGenerator
setUncaughtExceptionHandler
-
Method Details
-
nextMessage
Waits for the next message sent by the other side to this channel and returns obtained message.- Returns:
- message sent by the other side to this channel (not
null
) - Throws:
InterruptedException
- if waiting for message interruptedIOException
- if reading message failed
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
- if operation failed due to I/O exception
-