Package com.microsoft.playwright.impl
Class JsonPipe
java.lang.Object
com.microsoft.playwright.impl.LoggingSupport
com.microsoft.playwright.impl.ChannelOwner
com.microsoft.playwright.impl.JsonPipe
- All Implemented Interfaces:
Transport
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Queue<com.google.gson.JsonObject> private booleanprivate ListenerCollection<JsonPipe.EventType> Fields inherited from class com.microsoft.playwright.impl.ChannelOwner
connection, guid, initializer, type -
Constructor Summary
ConstructorsConstructorDescriptionJsonPipe(ChannelOwner parent, String type, String guid, com.google.gson.JsonObject initializer) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidvoidclose()protected voidhandleEvent(String event, com.google.gson.JsonObject params) (package private) void(package private) voidcom.google.gson.JsonObjectvoidsend(com.google.gson.JsonObject message) Methods inherited from class com.microsoft.playwright.impl.ChannelOwner
adopt, disposeChannelOwner, runUntil, sendMessage, sendMessage, sendMessageAsync, toProtocolRef, withLogging, withWaitLoggingMethods inherited from class com.microsoft.playwright.impl.LoggingSupport
logApi, logApiIfEnabled, logWithTimestamp, withLogging
-
Field Details
-
incoming
-
listeners
-
isClosed
private boolean isClosed
-
-
Constructor Details
-
JsonPipe
JsonPipe(ChannelOwner parent, String type, String guid, com.google.gson.JsonObject initializer)
-
-
Method Details
-
send
public void send(com.google.gson.JsonObject message) -
poll
-
close
- Specified by:
closein interfaceTransport- Throws:
IOException
-
onClose
-
offClose
-
handleEvent
- Overrides:
handleEventin classChannelOwner
-
checkIfClosed
private void checkIfClosed()
-