account.java

来自「java rmi技术实例」· Java 代码 · 共 22 行

JAVA
22
字号
import java.rmi.Remote;
import java.rmi.RemoteException;

public interface Account extends Remote {
  // Add method to return master BankManager
  public BankManager getBankManager()
       throws RemoteException;

  // Add method to return Client of this account
  public Client getClient()
       throws RemoteException;

  // Add method to return balance of this account
  public long getBalance()
       throws RemoteException;

  // Add method to withdraw cash from this account
  public long getCash (long amount)
       throws NoCashAvailableException, RemoteException;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?