Skip to content

Commit

Permalink
format with google style
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhi.lyz committed Mar 19, 2021
1 parent 05ad2aa commit 7980fcc
Show file tree
Hide file tree
Showing 884 changed files with 73,205 additions and 73,668 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,17 @@

/**
* The interface Persistence data observer.
*
*
* @author zhuoyu.sjw
* @version $Id : ConfigDataObserver.java, v 0.1 2018-04-17 17:02 zhuoyu.sjw Exp
* $$
* @version $Id : ConfigDataObserver.java, v 0.1 2018-04-17 17:02 zhuoyu.sjw Exp $$
*/
public interface ConfigDataObserver {

/**
* Handle data.
*
* @param dataId
* the data id
* @param configData
* the persistence data
*/
void handleData(String dataId, ConfigData configData);
/**
* Handle data.
*
* @param dataId the data id
* @param configData the persistence data
*/
void handleData(String dataId, ConfigData configData);
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,30 @@

/**
* The interface Configurator.
*
*
* @author zhuoyu.sjw
* @version $Id : Configurator.java, v 0.1 2018-04-17 17:26 zhuoyu.sjw Exp $$
*/
public interface Configurator extends Register {

/**
* Gets data observer.
*
* @return the data observer
*/
ConfigDataObserver getDataObserver();
/**
* Gets data observer.
*
* @return the data observer
*/
ConfigDataObserver getDataObserver();

/**
* Sets config data observer.
*
* @param configDataObserver
* the config data observer
*/
void setDataObserver(ConfigDataObserver configDataObserver);
/**
* Sets config data observer.
*
* @param configDataObserver the config data observer
*/
void setDataObserver(ConfigDataObserver configDataObserver);

/**
* Peek data config data.
*
* @return the config data
*/
ConfigData peekData();
/**
* Peek data config data.
*
* @return the config data
*/
ConfigData peekData();
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,46 +20,47 @@

/**
* The interface Event bus.
*
* @author zhuoyu.sjw
* @version $Id : EventBus.java, v 0.1 2018-07-12 21:11 zhuoyu.sjw Exp $$
*/
public interface EventBus {

/**
* Is enable boolean.
*
* @return the boolean
*/
boolean isEnable();
/**
* Is enable boolean.
*
* @return the boolean
*/
boolean isEnable();

/**
* Is enable boolean.
*
* @param eventClass the event class
* @return the boolean
*/
boolean isEnable(Class<? extends Event> eventClass);
/**
* Is enable boolean.
*
* @param eventClass the event class
* @return the boolean
*/
boolean isEnable(Class<? extends Event> eventClass);

/**
* Register.
*
* @param eventClass the event class
* @param eventSubscriber the event subscriber
*/
void register(Class<? extends Event> eventClass, EventSubscriber eventSubscriber);
/**
* Register.
*
* @param eventClass the event class
* @param eventSubscriber the event subscriber
*/
void register(Class<? extends Event> eventClass, EventSubscriber eventSubscriber);

/**
* Un register.
*
* @param eventClass the event class
* @param eventSubscriber the event subscriber
*/
void unRegister(Class<? extends Event> eventClass, EventSubscriber eventSubscriber);
/**
* Un register.
*
* @param eventClass the event class
* @param eventSubscriber the event subscriber
*/
void unRegister(Class<? extends Event> eventClass, EventSubscriber eventSubscriber);

/**
* Post event.
*
* @param event the event
*/
void post(final Event event);
/**
* Post event.
*
* @param event the event
*/
void post(final Event event);
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,23 @@

/**
* The interface Event subscriber.
*
*
* @author zhuoyu.sjw
* @version $Id : EventSubscriber.java, v 0.1 2018-07-12 21:12 zhuoyu.sjw Exp $$
*/
public interface EventSubscriber {

/**
* Is sync boolean.
*
* @return the boolean
*/
boolean isSync();
/**
* Is sync boolean.
*
* @return the boolean
*/
boolean isSync();

/**
* On event.
*
* @param event
* the event
*/
void onEvent(Event event);
/**
* On event.
*
* @param event the event
*/
void onEvent(Event event);
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
*/
public interface Publisher extends Register {

/**
* Publish.
*
* @param data the data
*/
void republish(String... data);
/**
* Publish.
*
* @param data the data
*/
void republish(String... data);
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,61 +18,57 @@

/**
* The interface Register.
*
*
* @author zhuoyu.sjw
* @version $Id : Register.java, v 0.1 2017-11-22 16:00 zhuoyu.sjw Exp $$
*/
public interface Register {

/**
* Reset.
*/
void reset();
/** Reset. */
void reset();

/**
* Is registered boolean.
*
* @return the boolean
*/
boolean isRegistered();
/**
* Is registered boolean.
*
* @return the boolean
*/
boolean isRegistered();

/**
* Unregister.
*/
void unregister();
/** Unregister. */
void unregister();

/**
* Gets data id.
*
* @return String data id
*/
String getDataId();
/**
* Gets data id.
*
* @return String data id
*/
String getDataId();

/**
* Gets group.
*
* @return the group
*/
String getGroup();
/**
* Gets group.
*
* @return the group
*/
String getGroup();

/**
* Gets regist id.
*
* @return the regist id
*/
String getRegistId();
/**
* Gets regist id.
*
* @return the regist id
*/
String getRegistId();

/**
* Is enabled boolean.
*
* @return boolean boolean
*/
boolean isEnabled();
/**
* Is enabled boolean.
*
* @return boolean boolean
*/
boolean isEnabled();

/**
* Gets timestamp.
*
* @return the timestamp
*/
long getTimestamp();
/**
* Gets timestamp.
*
* @return the timestamp
*/
long getTimestamp();
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,43 +23,44 @@

/**
* The interface Registry client.
*
* @author zhuoyu.sjw
* @version $Id : RegistryClient.java, v 0.1 2017-11-20 18:16 zhuoyu.sjw Exp $$
*/
public interface RegistryClient {

/**
* Register publisher.
*
* @param registration the registration
* @param data the data
* @return the publisher
*/
Publisher register(PublisherRegistration registration, String... data);
/**
* Register publisher.
*
* @param registration the registration
* @param data the data
* @return the publisher
*/
Publisher register(PublisherRegistration registration, String... data);

/**
* Register multi subscriber multi.
*
* @param registration the registration
* @return the subscriber multi
*/
Subscriber register(SubscriberRegistration registration);
/**
* Register multi subscriber multi.
*
* @param registration the registration
* @return the subscriber multi
*/
Subscriber register(SubscriberRegistration registration);

/**
* Register configurator.
*
* @param registration the registration
* @return the configurator
*/
Configurator register(ConfiguratorRegistration registration);
/**
* Register configurator.
*
* @param registration the registration
* @return the configurator
*/
Configurator register(ConfiguratorRegistration registration);

/**
* Unregister all publishers or subscribers belong to dataId.
*
* @param dataId the data id
* @param group registration group, use default group if null
* @param registryType the registry type, publisher or subscriber
* @return unregister total registers
*/
int unregister(String dataId, String group, RegistryType registryType);
/**
* Unregister all publishers or subscribers belong to dataId.
*
* @param dataId the data id
* @param group registration group, use default group if null
* @param registryType the registry type, publisher or subscriber
* @return unregister total registers
*/
int unregister(String dataId, String group, RegistryType registryType);
}
Loading

0 comments on commit 7980fcc

Please sign in to comment.