public class StableCustomerRegister
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
void |
add(StableFactoryCustomer customer,
ResourceType[] types) |
static StableCustomerRegister |
getInstance() |
void |
informResourceUpdated(ResourceType type)
通知消费者某种类型的资源已经更新
|
void |
removeCustomer(StableFactoryCustomer customer) |
public static StableCustomerRegister getInstance()
public void informResourceUpdated(ResourceType type)
public void add(StableFactoryCustomer customer, ResourceType[] types)
public void removeCustomer(StableFactoryCustomer customer)