Package com.zebra.sdk.comm
Interface ConnectionReestablisher
public interface ConnectionReestablisher
Defines methods used to reestablish a connection to a printer which may have been closed.
-
Method Summary
Modifier and TypeMethodDescriptionvoidReestablishes a connection to a printer which may have been closed due to an event, like a reboot.
-
Method Details
-
reestablishConnection
void reestablishConnection(PrinterReconnectionHandler handler) throws DiscoveryException, ConnectionException, TimeoutException, ZebraPrinterLanguageUnknownException Reestablishes a connection to a printer which may have been closed due to an event, like a reboot.- Parameters:
handler- Handles recreating and opening a connection to a printer- Throws:
DiscoveryException- thrown if the printer cannot be foundConnectionException- thrown if the connection can not be created or openTimeoutException- thrown if a connection can not be reestablished after a defined timeoutZebraPrinterLanguageUnknownException- thrown if the connection can not talk to the printer.
-