📄 onewirecontainerlistener.java
字号:
package net.sf.dz.daemon.onewire;/** * The {@link OneWireServer 1-Wire® server} container listener. * * <p> * * The listener can be added using {@link OneWireServer#addListener * addListener()} method and removed using {@link * OneWireServer#removeListener removeListener()} method. * * It is not necessary for the device to be present at the moment the * listener is added; the listener will be notified when the device arrives. * * @author Copyright © <a href="mailto:vt@freehold.crocodile.org">Vadim Tkachenko</a> 2001-2002 * @version $Id: OneWireContainerListener.java,v 1.4 2004/06/28 20:35:46 vtt Exp $ */public interface OneWireContainerListener { /** * Accept a notification about device arrival. * * @param address 1-Wire® network address of the device arrived, as * string. * * @param type 1-Wire® device type (actually, name, but that'll work * just as well). */ public void deviceArrived(String address, String type); /** * Accept a notification about device departure. * * @param address 1-Wire® network address of the device departed, as * string. */ public void deviceDeparted(String address); /** * Accept a notification about device failure. * * @param address 1-Wire® network address of the problematic device, * as string. * * @param message Error message. */ public void deviceFault(String address, String message);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -