public interface ConnectionReestablisher
Modifier and Type | Method and Description |
---|---|
void |
reestablishConnection(PrinterReconnectionHandler handler)
Reestablishes a connection to a printer which may have been closed due to an event, like a reboot.
|
void reestablishConnection(PrinterReconnectionHandler handler) throws DiscoveryException, ConnectionException, java.util.concurrent.TimeoutException, ZebraPrinterLanguageUnknownException
handler
- Handles recreating and opening a connection to a printerDiscoveryException
- thrown if the printer cannot be foundConnectionException
- thrown if the connection can not be created or openjava.util.concurrent.TimeoutException
- thrown if a connection can not be reestablished after a defined timeoutZebraPrinterLanguageUnknownException
- thrown if the connection can not talk to the printer.
© 2017 ZIH Corp. All Rights Reserved.