mirror of
https://github.com/Estom/notes.git
synced 2026-04-14 18:29:48 +08:00
java
This commit is contained in:
19
Java/Java源代码/codedemo/java/rmi/UserService.java
Normal file
19
Java/Java源代码/codedemo/java/rmi/UserService.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package cn.aofeng.demo.java.rmi;
|
||||
|
||||
import java.rmi.Remote;
|
||||
import java.rmi.RemoteException;
|
||||
|
||||
/**
|
||||
* 用户信息服务。
|
||||
*
|
||||
* @author <a href="mailto:aofengblog@163.com">聂勇</a>
|
||||
*/
|
||||
public interface UserService extends Remote {
|
||||
|
||||
public User findByName(String name) throws RemoteException;
|
||||
|
||||
public User findById(String id) throws RemoteException;
|
||||
|
||||
public boolean add(User user) throws RemoteException;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user