Skip to content

Commit

Permalink
[javadoc] fix issues with javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
truthbk committed Jan 29, 2020
1 parent f3a81b6 commit b527293
Show file tree
Hide file tree
Showing 4 changed files with 203 additions and 26 deletions.
10 changes: 10 additions & 0 deletions src/main/java/com/timgroup/statsd/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ private Builder() {}

/**
* Build factory method for the event.
* @return Event built following specified options.
*/
public Event build() {
if ((event.title == null) || event.title.isEmpty()) {
Expand All @@ -90,6 +91,7 @@ public Event build() {
* Title for the event.
* @param title
* Event title ; mandatory
* @return Builder object being used.
*/
public Builder withTitle(final String title) {
event.title = title;
Expand All @@ -100,6 +102,7 @@ public Builder withTitle(final String title) {
* Text for the event.
* @param text
* Event text ; supports line breaks ; mandatory
* @return Builder object being used.
*/
public Builder withText(final String text) {
event.text = text;
Expand All @@ -110,6 +113,7 @@ public Builder withText(final String text) {
* Date for the event.
* @param date
* Assign a timestamp to the event ; Default: none (Default is the current Unix epoch timestamp when not sent)
* @return Builder object being used.
*/
public Builder withDate(final Date date) {
event.millisSinceEpoch = date.getTime();
Expand All @@ -120,6 +124,7 @@ public Builder withDate(final Date date) {
* Date for the event.
* @param millisSinceEpoch
* Assign a timestamp to the event ; Default: none (Default is the current Unix epoch timestamp when not sent)
* @return Builder object being used.
*/
public Builder withDate(final long millisSinceEpoch) {
event.millisSinceEpoch = millisSinceEpoch;
Expand All @@ -130,6 +135,7 @@ public Builder withDate(final long millisSinceEpoch) {
* Source hostname for the event.
* @param hostname
* Assign a hostname to the event ; Default: none
* @return Builder object being used.
*/
public Builder withHostname(final String hostname) {
event.hostname = hostname;
Expand All @@ -140,6 +146,7 @@ public Builder withHostname(final String hostname) {
* Aggregation key for the event.
* @param aggregationKey
* Assign an aggregation key to the event, to group it with some others ; Default: none
* @return Builder object being used.
*/
public Builder withAggregationKey(final String aggregationKey) {
event.aggregationKey = aggregationKey;
Expand All @@ -150,6 +157,7 @@ public Builder withAggregationKey(final String aggregationKey) {
* Priority for the event.
* @param priority
* Can be "normal" or "low" ; Default: "normal"
* @return Builder object being used.
*/
public Builder withPriority(final Priority priority) {
//noinspection StringToUpperCaseOrToLowerCaseWithoutLocale
Expand All @@ -161,6 +169,7 @@ public Builder withPriority(final Priority priority) {
* Source Type name for the event.
* @param sourceTypeName
* Assign a source type to the event ; Default: none
* @return Builder object being used.
*/
public Builder withSourceTypeName(final String sourceTypeName) {
event.sourceTypeName = sourceTypeName;
Expand All @@ -171,6 +180,7 @@ public Builder withSourceTypeName(final String sourceTypeName) {
* Alert type for the event.
* @param alertType
* Can be "error", "warning", "info" or "success" ; Default: "info"
* @return Builder object being used.
*/
public Builder withAlertType(final AlertType alertType) {
//noinspection StringToUpperCaseOrToLowerCaseWithoutLocale
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,14 @@ protected NumberFormat initialValue() {
* the entity id value used with an internal tag for tracking client entity.
* If "entityID=null" the client default the value with the environment variable "DD_ENTITY_ID".
* If the environment variable is not defined, the internal tag is not added.
* @param poolSize
* The size for the network buffer pool.
* @param processorWorkers
* The number of processor worker threads assembling buffers for submission.
* @param senderWorkers
* The number of sender worker threads submitting buffers to the socket.
* @param blocking
* Blocking or non-blocking implementation for statsd message queue.
* @throws StatsDClientException
* if the client could not be started
*/
Expand Down Expand Up @@ -1004,7 +1008,7 @@ public void serviceCheck(final ServiceCheck sc) {
/**
* Records a value for the specified set.
*
* <p></p>Sets are used to count the number of unique elements in a group. If you want to track the number of
* <p>Sets are used to count the number of unique elements in a group. If you want to track the number of
* unique visitor to your site, sets are a great way to do that.</p>
*
* <p>This method is a DataDog extension, and may not work with other servers.</p>
Expand Down
Loading

0 comments on commit b527293

Please sign in to comment.